package shell.listener;

import inabit.base.WorkingMemory;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import shell.view.windows.BackwardInferencePanel;
import shell.view.windows.InabitWindow;
import shell.view.windows.SetGoalWindow;
/**@author Rafael Rocha*/
public class SetGoalListener implements ActionListener{
	private InabitWindow window;
	private WorkingMemory wm;
	private BackwardInferencePanel panel;
	
	public SetGoalListener(InabitWindow window, BackwardInferencePanel panel, WorkingMemory wm) {
		this.window = window;
		this.wm = wm;
		this.panel = panel;
	}
	
	public void actionPerformed(ActionEvent e) {
		new SetGoalWindow(window, panel, wm).open();
	}
}
